package com.naire.modul.district.service;

import java.util.List;

import net.common.service.GeneralService;
import com.naire.modul.district.dao.DistrictDao;
import com.naire.modul.district.dao.impl.DistrictDaoImpl;
import com.naire.modul.district.vo.DistrictVo;

/**
 * 
 * 
 * @author Administrator
 * 
 */
public class DistrictSelectService extends GeneralService {

	private List<DistrictVo> list;
	private String code;

	@Override
	public void execute() throws Exception {
		DistrictDao dao = new DistrictDaoImpl();
		list = dao.searchByCode(code);
	}

	public List<DistrictVo> getList() {
		return list;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
